package com.yc.cloud.admin.service;

import com.yc.cloud.common.orm.CommonPage;
import com.yc.cloud.common.basic.dto.BasePageReqDTO;
import com.yc.cloud.admin.dto.request.HwDeviceCameraCreateReqDTO;
import com.yc.cloud.admin.dto.request.HwDeviceCameraUpdateReqDTO;
import com.yc.cloud.admin.vo.HwDeviceCameraVo;
import com.yc.cloud.entity.HwDeviceCamera;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 设备摄像头关联表 服务类
 * </p>
 *
 * @author kinggu
 * @since 2025-08-27
 */
public interface HwDeviceCameraService extends IService<HwDeviceCamera> {

    /**
     * 创建设备摄像头关联表
     * @param createReqDTO 创建参数
     * @return 创建成功后的VO对象
     */
    HwDeviceCameraVo create(HwDeviceCameraCreateReqDTO createReqDTO);

    /**
     * 更新设备摄像头关联表
     * @param updateReqDTO 更新参数
     * @return 更新成功后的VO对象
     */
    HwDeviceCameraVo update(HwDeviceCameraUpdateReqDTO updateReqDTO);

    CommonPage<HwDeviceCameraVo> list(BasePageReqDTO pageReqDTO);

    HwDeviceCameraVo getVOById(Long id);

    List<HwDeviceCameraVo> convertToVoList(List<HwDeviceCamera> entityList);

    HwDeviceCamera get(Long id);

    boolean delete(Long id);
} 